package vashion.azeroth.core.manager.personal.tran;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import vashion.azeroth.core.dao.BaseDao;
import vashion.azeroth.core.manager.impl.BaseManagerImpl;
import vashion.azeroth.core.personal.tran.dao.PersonalRechargeOrderDao;
import vashion.azeroth.core.personal.tran.pojo.PersonalRechargeOrder;

@Service
public class PersonalRechargeOrderManager extends BaseManagerImpl<PersonalRechargeOrder> {

	@Autowired
	private PersonalRechargeOrderDao rechargeOrderDao;
	
	public PersonalRechargeOrder getRechargeOrderByDisburseNo(String disburseNo) {
		return rechargeOrderDao.getRechargeOrderByDisburseNo(disburseNo);
	}
	
	public PersonalRechargeOrder getRechargeOrderByRechargeOrderNoWithLock(String rechargeOrderNo) {
		return rechargeOrderDao.getRechargeOrderByRechargeOrderNoWithLock(rechargeOrderNo);
	}
	
	@Override
	public BaseDao<PersonalRechargeOrder> getDao() {
		return rechargeOrderDao;
	}

}
